<template>
  <el-form-item :prop="prop" :label="label">
    <el-switch v-bind="$attrs" inline-prompt :disabled="!isEdit" :active-text="activeText"
      :inactive-text="inactiveText" />
  </el-form-item>
</template>

<script lang="ts" setup>
// 是否输入框
// 用法 <MkInputBoolean label="是否配血" v-model="entity.shiFouPeiXue" prop='shiFouPeiXue' :isEdit="isEdit" />
defineOptions({
  name: 'MkInputBoolean'
})

const props = defineProps({
  prop: {
    type: String,
  },
  label: {
    type: String,
  },
  isEdit: {
    type: Boolean,
    default: true
  },
  activeText: {
    type: String,
    default: '是'
  },
  inactiveText: {
    type: String,
    default: '否'
  },
})

</script>